package com.joolun.activity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动奖品明细对象 activity_award_info
 *
 * @author www.joolun.com
 * @date 2022-11-22
 */
@Data
@TableName("activity_award_info")
@EqualsAndHashCode(callSuper = true)
public class ActivityAwardInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 活动唯一编码 */
    @Excel(name = "活动编码")
    private String activityCode;

    /** 奖品总码 */
    private String awardCode;

    /** 奖品等级 */
    @Excel(name = "奖品等级名称")
    @ApiModelProperty(value = "奖品等级名称")
    @TableField(exist = false)
    private String levelName;

    /** 奖品唯一编码 */
    @Excel(name = "奖品唯一编码")
    private String awardInfoCode;

    /** 奖品明细状态1、未中奖 2、已中奖 3、已领取核销 */
    @Excel(name = "奖品状态",dictType="activity_award_info_status")
    private String status;

    /** 活动参与唯一编码 */
    @Excel(name = "参与编码")
    private String activityTakeCode;

    /** 中奖人openid */
    private String openId;

    /** 中奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "中奖时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date takeTime;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /** 核销ID */
    private Long userId;

    /** 核销人 */
    @Excel(name = "核销人")
    private String checkUser;

    /** 核销部门ID */
    private Long deptId;

    /** 核销部门 */
    @Excel(name = "核销部门")
    private String deptName;

    @Excel(name = "奖品名称")
    private String name;

    @Excel(name = "中奖人名称")
    private String userName;

    @Excel(name = "中奖人手机号")
    private String phone;

    /** 生成人 */
    @Excel(name = "生成人")
    private String genUser;

    /** 生成部门 */
    @Excel(name = "生成部门")
    private String genDept;

    /** 生成人ID */
    private Long genUserId;

    /** 部门ID */
    private Long genDeptId;
}
